//
//  IMIAudioRecord.h
//  MiHome
//
//  Created by 阎超 on 16/05/2017.
//  Copyright © 2017 小米移动软件. All rights reserved.
//

#ifndef IMIAudioRecord_h
#define IMIAudioRecord_h

#import <Foundation/Foundation.h>
#import <AudioToolbox/AudioToolbox.h>
#import <AVFoundation/AVFoundation.h>
#import "IMIAudioRecorder.h"

typedef void (^ fAudioDataBlock)(void* audioData, unsigned int audioLen);

@interface IMIAudioRecord : NSObject <IMIAudioRecordDelegate>

@property (nonatomic, assign) NSInteger audioSampleRate;
@property (nonatomic, assign) NSInteger auidoChannel;
@property (nonatomic, assign) NSInteger audioBitsPerSample;
@property (nonatomic, assign) float audioGain;

- (void)startTalk:(fAudioDataBlock)fBlock;
- (void)stopTalk;

@end

#endif /* IMIAudioRecord_h */
